package com.societyGames.persist
{
	import com.societyGames.system.EventObject;

	public interface IPersist
	{
		function setData(key:String, data:Object):void; //Sets intermediate data.
		function getData(key:String):Object;			//Sets intermediate data.
		function open():void;							//Opens the connection to the save data.
		function flush():void;							//Close the save data.
		function get openFailedEventObject():EventObject; //Catastrophic: Attempt to open failed completely.
		function get openSucceededEventObject():EventObject; //Open succeeded.
		function get flushFailedEventObject():EventObject; //Attempt to write failed.
		function get flushSucceededEventObject():EventObject; //Attempt to write succeeded.
	}
}